﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shl01.Models
{
    public class IDALModel
    {
        public string TypeName { get; set; }//表名
        public string PrimaryName { get; set; }//主键名
        public string DBName { get; set; }//数据库名

        public string GetStr()
        {
            string str = "";
            str = @"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using " + DBName + @".Model;

namespace " + DBName + @".IDAL
{
    public interface I" + TypeName + @"Service : IBaseService<Grade>
    {

    }
}

";
            str = str.Replace("Grade", TypeName);
            return str.Replace("'", "\"");
        }
    }
}
